import myhttp from '@/utils/request.js'
// 获取验证码
function apiGetCode (mobile) {
  return myhttp({
    url: '/au/code',
    method: 'POST',
    data: {
      mobile: mobile
    }
  })
}
// 用户登录
function apiUserLogin ({ mobile, code }) {
  return myhttp({
    url: '/au/login',
    method: 'POST',
    data: {
      mobile: mobile,
      code: code
    }
  })
}
export { apiGetCode, apiUserLogin }
